# Find installed FFTW3

# find include path
find_path(FFTW3_INCLUDE_DIR
   NAMES fftw3.h
   DOC "FFTW include path"
)

# find static library
find_library(FFTW3_LIBRARY
   NAMES fftw3
   DOC "FFTW API static library path"
)

set(FFTW3_INCLUDE_DIRS ${FFTW3_INCLUDE_DIR})
set(FFTW3_LIBRARIES ${FFTW3_LIBRARY})

if (FFTW3_INCLUDE_DIR AND FFTW3_LIBRARY)
   set(FFTW3_FOUND TRUE)
   if (NOT FFTW3_FIND_QUIETLY)
      message (STATUS "Found FFTW3: ${FFTW3_LIBRARY}")
   endif()
else()
   set(FFTW3_FOUND FALSE)
   if (FFTW3_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find FFTW3")
   endif()
endif()
